package pl.polidea.AsyncNet;

import java.io.InputStream;
import pl.polidea.TreeXMLParser.*;

public abstract class StreamXMLParserEx <T> implements IStreamParser<T>
{

    public T parse(InputStream is) throws Exception
    {
        return parseEx(StreamXMLParser.instance().parse(is));
    }
    
    public abstract T parseEx(XMLNode result) throws Exception;
    
}
